package com.xzy.fruitmall.mapper;

import com.xzy.fruitmall.entity.GoodsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GoodsMapper {
    List<GoodsInfo> findAllGoods();
    List<GoodsInfo> findGoodsByName(String goodsName);
    void deleteGoodsById(int goodsId);
    GoodsInfo findGoodsById(int goodsId);
    void addGoods(GoodsInfo gi);
    void updateGoods(GoodsInfo gi);
}
